package com.lanou.a;

public class Zi extends Fu {
	public String name = "Zi";

	public void paly() {
		System.out.println("子类的玩");
	}

	public void print(String name, String fuName) {
		// name -- 当前类的name
		this.name = name;
		// fuName -- 父类的name
		super.name = fuName;
		System.out.println(super.name);
		System.out.println(name);
		paly();
		super.paly();
	}

	public static void main(String[] args) {
		Zi zi = new Zi();
		zi.print("zizizi", "fufufu");
	}

}
